#include "protocal.hpp"
#include <iostream>
using namespace std;
int main()
{
    request req(123, 456, '+');
    string messages;
    req.Serialize(messages);
    cout << messages << endl;

    string Enpackage;
    Enpackage = Encode(messages);
    cout << Enpackage << endl;

    string Depackage;
    Decode(Enpackage, Depackage);
    cout << Depackage;

    // messages = " ";
    // req.Deserialize(Depackage, messages);
    // cout << req.x;
    // cout << req.y;
    // cout << req.op;

    return 0;
}